package org.awei;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import redis.clients.jedis.Jedis;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@MapperScan("org.awei.dao")
public class App
{
    @Bean
    public Jedis getJedis(){
        Jedis jedis = new Jedis("127.0.0.1", 6379);
        jedis.select(0);
        return jedis;
    }

    public static void main( String[] args )
    {
        System.out.println("123");
        SpringApplication.run(App.class,args);
    }
}
